package org.hxyjs.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class TypeOfCompetitionDetails implements Serializable {
    private String tocdno;

    private String tocdname;

    private String tocddesc;

    private static final long serialVersionUID = 1L;

    public String getTocdno() {
        return tocdno;
    }

    public void setTocdno(String tocdno) {
        this.tocdno = tocdno;
    }

    public String getTocdname() {
        return tocdname;
    }

    public void setTocdname(String tocdname) {
        this.tocdname = tocdname;
    }

    public String getTocddesc() {
        return tocddesc;
    }

    public void setTocddesc(String tocddesc) {
        this.tocddesc = tocddesc;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TypeOfCompetitionDetails other = (TypeOfCompetitionDetails) that;
        return (this.getTocdno() == null ? other.getTocdno() == null : this.getTocdno().equals(other.getTocdno()))
            && (this.getTocdname() == null ? other.getTocdname() == null : this.getTocdname().equals(other.getTocdname()))
            && (this.getTocddesc() == null ? other.getTocddesc() == null : this.getTocddesc().equals(other.getTocddesc()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getTocdno() == null) ? 0 : getTocdno().hashCode());
        result = prime * result + ((getTocdname() == null) ? 0 : getTocdname().hashCode());
        result = prime * result + ((getTocddesc() == null) ? 0 : getTocddesc().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", tocdno=").append(tocdno);
        sb.append(", tocdname=").append(tocdname);
        sb.append(", tocddesc=").append(tocddesc);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}